#include <iostream>
#include <string>

using namespace std;

class Employee {
protected:
	string _name;
	float _salary;
public:
	Employee(string name = "", float salary = 0.0f)
		:_name(name), _salary(salary) { }

	virtual inline void salaryPrint() const
	{
		cout << _name << " " << _salary << endl;
	}
};

class Manager : protected Employee {
	float _bouns;
public :
	Manager(string name, float salary, float bouns)
		: Employee(name, salary), _bouns(bouns) { }

	inline void salaryPrint() const
	{
		cout << _name << " " << _salary + _bouns << endl;
	}
};

//int main()
//{
//	Employee e1("zhangsan", 1000.0f);
//	Manager m1("lisi", 5000, 1000);
//
//	e1.salaryPrint();
//	m1.salaryPrint();
//
//	return 0;
//}